feat(tui) add agent managament to /agent - #1
Closed
Builderstar wants to merge 122 commits into
Closed
Conversation
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…nAI-compatible providers (anomalyco#14973) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
…ion (anomalyco#20581) Co-authored-by: Aaron Zhu <aaron@Aarons-MacBook-Air.local>
Adds Create, Edit, and Delete agent management to the existing /agents dialog via a new Manage category. All operations read/write the existing .md frontmatter format used by OpenCode agents. Create flow: manual (via $EDITOR with fallback to inline prompt), from file, or AI-generated from a description using any configured model. Edit flow: permissions (allow/deny/ask toggle), rename, color picker (named theme colors + custom hex), instructions via $EDITOR. Delete flow: confirmation dialog before removing the agent file. Hot-reload after each operation uses sdk.client.instance.dispose(), matching the pattern in dialog-provider.tsx.
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes anomalyco#20130
Type of change
What does this PR do?
What
Adds a Manage section to the existing
/agentsdialog in the TUI with three actions: Create, Edit, and Delete custom agents.Why
Currently managing custom agents requires manually writing
.mdfiles outside of opencode. This brings that workflow into the TUI where the/agentsdialog already lives.How did you verify your code works?
Tested locally with a standalone binary build on Linux (Ubuntu 24.04.4 LTS). Screencasts attached below showing Create (manual, from file, generate), Edit (permissions, name, color, instructions), and Delete flows.
Screenshots / recordings
opencode_features.mp4
Checklist